package com.kaiwukj.android.ufamily.mvp.ui.page.home.home.active;

import android.os.Bundle;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.kaiwukj.android.ufamily.R;
import com.kaiwukj.android.ufamily.app.base.review.BaseActivity;
import com.kaiwukj.android.ufamily.app.constant.ARouterUrlKt;

import butterknife.BindView;
import butterknife.OnClick;

@Route(path = ARouterUrlKt.ActivePageUrl)
public class ActiveActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;

    @OnClick(R.id.container_left)
    void onBackClick() {
        onBackPressedSupport();
    }

    @Autowired
    int type = 2;

    @Override
    protected int getLayoutId() {
        ARouter.getInstance().inject(this);
        return R.layout.activity_base_content;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        tvTitle.setText("活动");
        loadRootFragment(R.id.fl_content, ActiveFragment.newInstance(type));
    }

    @Override
    protected void initData(Bundle savedInstanceState) {

    }
}
